import request from '@/utils/request'

// 查询日利润汇总列表
export function listDailyProfit(query) {
  return request({
    url: '/operations/dailyProfit/list',
    method: 'get',
    params: query
  })
}

// 查询月度利润统计
export function getMonthlyStats(profitMonth) {
  return request({
    url: '/operations/dailyProfit/monthlyStats',
    method: 'get',
    params: { profitMonth }
  })
}

// 导出日利润数据
export function exportDailyProfit(query) {
  return request({
    url: '/operations/dailyProfit/export',
    method: 'post',
    params: query
  })
}

